﻿using Orchard.ContentManagement;
using Orchard.ContentManagement.Aspects;


namespace Hazza.UserInput.Models
{
    public class HazzaInputPart : ContentPart, ITitleAspect
    {
        public string Question
        {
            get { return this.Retrieve(x => x.Question); }
            set { this.Store(x => x.Question, value); }
        }

        public int ContainerId {
            get { return this.Retrieve(x => x.ContainerId); }
            set { this.Store(x => x.ContainerId, value); }
        }

        public string Title {
            get { return Question; }
        }
    }
}